---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table10.log
  log type:  text
 opened on:  11 Jun 2020, 12:10:40

. 
. **** Presidential effects across electoral competititon
. 
. use "$path/foreclosures_analysis.dta", clear

. 
. 
. 
. gen competitive = norm_vote > 0.4 & norm_vote < 0.6

. keep if competitive == 1
(3,715 observations deleted)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate foreclosure_inc [aw=pop_y], a(fips sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      5,713
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       7.66
                                                Prob > chi2       =     0.0217
                                                R-squared         =     0.9632
                                                Adj R-squared     =     0.9462
                                                Root MSE          =     2.9456

                                    (Replications based on 1,610 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.5355106   .2004422    -2.67   0.008    -.9283701   -.1426512
 foreclosure_inc |   .1111198   .0923633     1.20   0.229    -.0699088    .2921485
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1610           1610 *   | 
              sy |          190             191              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b1 = _b[foreclosure_rate]

. local se1 = _se[foreclosure_rate]

. local bint1 = _b[foreclosure_inc]

. local seint1 = _se[foreclosure_inc]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate foreclosure_inc [aw=pop_y], a(fips popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      5,718
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       4.57
                                                Prob > chi2       =     0.1019
                                                R-squared         =     0.9583
                                                Adj R-squared     =     0.9413
                                                Root MSE          =     3.0766

                                    (Replications based on 1,610 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.1626989   .1294656    -1.26   0.209    -.4164469     .091049
 foreclosure_inc |  -.0833004   .0792602    -1.05   0.293    -.2386476    .0720468
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1610           1610 *   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b2 = _b[foreclosure_rate]

. local se2 = _se[foreclosure_rate]

. local bint2 = _b[foreclosure_inc]

. local seint2 = _se[foreclosure_inc]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate foreclosure_inc [aw=pop_y], a(i.fips##c.year sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      5,713
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       3.51
                                                Prob > chi2       =     0.1728
                                                R-squared         =     0.9918
                                                Adj R-squared     =     0.9796
                                                Root MSE          =     1.8131

                                    (Replications based on 1,610 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |   .2224581    .127379     1.75   0.081    -.0272002    .4721164
 foreclosure_inc |  -.0949089   .0611476    -1.55   0.121     -.214756    .0249382
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1610           1610 *   | 
     fips#c.year |         1610            1610              0 ?   | 
              sy |          190             191              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b3 = _b[foreclosure_rate]

. local se3 = _se[foreclosure_rate]

. local bint3 = _b[foreclosure_inc]

. local seint3 = _se[foreclosure_inc]

. local n3 = e(N)

. local nclust3 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate foreclosure_inc [aw=pop_y], a(i.fips##c.year popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      5,718
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       2.52
                                                Prob > chi2       =     0.2834
                                                R-squared         =     0.9867
                                                Adj R-squared     =     0.9692
                                                Root MSE          =     2.2310

                                    (Replications based on 1,610 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |   .0326044   .1137133     0.29   0.774    -.1902697    .2554784
 foreclosure_inc |  -.0810053   .0564658    -1.43   0.151    -.1916763    .0296657
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1610           1610 *   | 
     fips#c.year |         1610            1610              0 ?   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b4 = _b[foreclosure_rate]

. local se4 = _se[foreclosure_rate]

. local bint4 = _b[foreclosure_inc]

. local seint4 = _se[foreclosure_inc]

. local n4 = e(N)

. local nclust4 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table10.log
  log type:  text
 closed on:  11 Jun 2020, 12:22:18
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
